package com.shuaiche.yeguan.views.brandselectbar;


import com.shuaiche.yeguan.model.SCAreaCityModel;
import com.shuaiche.yeguan.model.SCCarBrandResponse;
import com.shuaiche.yeguan.model.SCRestrictedChildModel;
import com.shuaiche.yeguan.views.brandselectbar.bean.BaseIndexPinyinBean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by zhangxutong .
 * Date: 16/08/28
 */

public class ItemBean extends BaseIndexPinyinBean implements Serializable , Cloneable{
    private List<SCCarBrandResponse> recommendBrands;   //推荐的品牌
    private String name;//一级标题
    private String logo;    //标志图url
    private boolean isSelect; //是否选中
    private Long id;
    private String headLetter;
    private Integer provinceId;

    private String secondName;      //二级标题
    private String phone;

    private List<SCRestrictedChildModel> childList;

    private List<SCAreaCityModel> cityChildList;

    private boolean isExpand;   //是否展开

    public ItemBean() {
    }
    public ItemBean(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getHeadLetter() {
        return headLetter;
    }

    public void setHeadLetter(String headLetter) {
        this.headLetter = headLetter;
    }

    public Integer getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Integer provinceId) {
        this.provinceId = provinceId;
    }

    public List<SCRestrictedChildModel> getChildList() {
        return childList;
    }

    public void setChildList(List<SCRestrictedChildModel> childList) {
        this.childList = childList;
    }

    public boolean isExpand() {
        return isExpand;
    }

    public void setExpand(boolean expand) {
        isExpand = expand;
    }

    @Override
    public String getTarget() {
        return headLetter;
    }

    public List<SCCarBrandResponse> getRecommendBrands() {
        return recommendBrands;
    }

    public void setRecommendBrands(List<SCCarBrandResponse> recommendBrands) {
        this.recommendBrands = recommendBrands;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getSecondName() {
        return secondName;
    }

    public void setSecondName(String secondName) {
        this.secondName = secondName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public List<SCAreaCityModel> getCityChildList() {
        return cityChildList;
    }

    public void setCityChildList(List<SCAreaCityModel> cityChildList) {
        this.cityChildList = cityChildList;
    }

    @Override
    public ItemBean clone() {
        ItemBean model = null;
        try{
            model = (ItemBean)super.clone();
        } catch(CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return model;
    }
}
